/**
 * kaGridHeaders 封装
 * 
 * 版本：v1.0
 * 
 * Stanley
 **/
layui.define(['jquery'],
    function (exports) {
        var kaGridHeaders = new function () {
            this.get = function (params) {
                if (params.headerBoolean == undefined || params.headerBoolean || params.headerBoolean == "true") {
                    return {token: 'Bearer ' + layui.kaToken.get() }; //token
                } else {
                    return {};
                }
            }
        };
        exports('kaGridHeaders', kaGridHeaders);
    }
)